import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus' // 引入 element-plus
import 'element-plus/dist/index.css' // 引入 element-plus 的样式
import "@/assets/fonts/ym/iconfont.css";
import "@/assets/fonts/ym-custom/iconfont.css";
import '@/assets/scss/index.scss'
import App from './App.vue'
import router from './router'
import httpRequest from '@/utils/httpRequest' // 引入 httpRequest

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus) // 注册 element-plus

// 将 httpRequest 挂载到全局
app.config.globalProperties.$http = httpRequest

app.mount('#app')